package top.infopub.mgr.cap.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.mgr.cap.vo.RepaymentScheduleInfoVo;
import top.infopub.mgr.cap.vo.RepaymentScheduleVo;
import top.infopub.model.cap.RepaymentSchedule;
import top.infopub.model.cap.RepaymentScheduleSublist;

import java.util.List;

/**
 * @Author Warking
 * @Date 2021/5/24 10:37
 * @Version 1.0  还款计划
 */
@Repository
public interface RepaymentScheduleDao {
    /*还款计划列表接口*/
    Page<RepaymentSchedule> selectPageQuery(RepaymentSchedule repaymentSchedule);
    /*还款计划数据 根据ID查询*/
    RepaymentSchedule findById(String id);

    RepaymentScheduleInfoVo queryDetailByRepay(@Param("id") String id);

    List<RepaymentScheduleSublist> selectSublist(@Param("id")String id);

    void updateRep(RepaymentSchedule repaymentSchedule);

    void insertRep(RepaymentSchedule repaymentSchedule);

    void insertBatchSublist(List<RepaymentScheduleSublist> sublists);

    void deleteSublist(@Param("id") String id);
}
